package kr.or.kosta.otr.persistence.user;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import kr.or.kosta.otr.vo.UserVO;


public interface UserDao {
	void addUser(UserVO vo)throws SQLException;
	void updateUser(UserVO vo)throws SQLException;
	void deleteUser(String userId)throws SQLException;
	UserVO getOneUser(HashMap<String, String> map)throws SQLException;
	ArrayList<UserVO> getAllUser(String adminId)throws SQLException;
	UserVO getOneUserIdByEmail(String userEmail)throws SQLException;
	UserVO getOneSecretByUserId(String userId)throws SQLException;
	boolean isExist(String userId)throws SQLException;
	ArrayList<UserVO> getOneUserByUserId(HashMap<String, String> map)throws SQLException;
	
	//수정한 사람 : 서우리 | 수정시간 : 2014년 11월 7일 오후 6시 48분
	//void updatePoint(int point)throws SQLException;
	void updatePointPlus(HashMap<String, Object> map)throws SQLException;
	void updatePointMinus(HashMap<String, Object> map)throws SQLException;
	int getUserPoint(String userId)throws SQLException;
}
